Skip to main content

Example, test IF functions

Demonstrates nested IF statements with conditional SETs

Details

Rule Type
Time

Execution
Initialization

Parameters

NameDataTypeDefaultValueDescription
allowed_minutesinteger0Minutes past noon

Decision Tree

Rule processing begins in the cell R1:Level1 and proceeds right/down. Any IF statement which results in a DONE step terminates the rule immediately.

Line#Level1Level2Level3Comment
1Start
2IF(Punch Action = 1)
3IF(Punch Time > ADD_TIME(NOW(), allowed_minutes))
4SET(Effective Punch Time = ADD_TIME(Punch Time, allowed_minutes))
5DONE
6SET(Workgroup = 97)
7SET(Division = 90)